package BookManagement.user;

import BookManagement.operation.*;

import java.util.Scanner;

public class NormalUser extends User{
    public NormalUser(String name, String account, String password, boolean role) {
        super(name, account, password, role);
        this.iBusinessOperations = new IBusinessOperation[]{new ExitBookManagement(),new FindBook(),new BorrowingBook(),new ReturnBook()};
    }

    public int menu(){
        System.out.println("*******************************************************");
        System.out.println("**************** 欢迎进入普通用户人员界面 ****************");
        System.out.println("*******************************************************");
        System.out.println("****************     1 : 查找图书       ****************");
        System.out.println("****************     2 : 借阅图书       ****************");
        System.out.println("****************     3 : 归还图书       ****************");
        System.out.println("****************     0 : 退出系统       ****************");
        System.out.println("*******************************************************");
        System.out.println("*******************************************************");
        System.out.println("请开始你的操作：");
        Scanner scan = new Scanner(System.in);
        int choice = 0;
        choice = scan.nextInt(4);
        return choice;
    }
}
